home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / text / hints / volume_03 / issue_06 < prev    next >
Text File  |  1995-02-16  |  7KB  |  208 lines

  1. •   !chars − which is available as !1stchars with FWPlus version 2 and
  2. is also available on SID + Archive BBS + various PD discs, can be used
  3. for “mousing” text into !Draw applications.
  4. 3.6
  5. •   !Draw − You can use the cursor keys for fine positioning when
  6. drawing Bezier curves or lines.
  7. 3.6
  8. •   !Madness − I was always very disappointed with this Demo − until I
  9. looked at the !RunImage file and found a variable called madspeed% −
  10. guess what changing it to 1 does? Rob Davison
  11. 3.6
  12. •   !system on floppies − Those of you without hard discs will have
  13. !system on various of your floppies. The trouble is that when you change
  14. to other discs, even if they have !system on them, you will be asked to
  15. insert the disc containing !system that the com-puter saw first of all.
  16. To get round this, double click on !system on the current disc before
  17. trying to launch applications from the disc.
  18. 3.6
  19. •   Art Nouveau − Fills approximating to graduated, logarithmic,
  20. circular etc can easily be ‘designed’ and saved to disc. For example:
  21. 3.6
  22. Approx circle fill − Set a small grid size and switch it on. Draw
  23. several concentric filled circles, selecting each shade as you go. Smear
  24. the edges with ‘colour merge’ if you don’t want the bands of colour to
  25. show. Pick it up as a brush and use with: brush, effects1, distort x (or
  26. y). Some of the effect that Pro-Artisan and Atelier have as features can
  27. be cobbled together with a little effort using Art Nouveau (at half the
  28. price!). D P Allen.
  29. 3.6
  30. •   Beware the SUM! − If you rely on indentation in your programs to
  31. keep a check on the structure of the various loops, beware that SUM(A())
  32. will cause an extra indent. Is there any way round this? Fred Hartley,
  33. Hayes.
  34. 3.6
  35. •   Booting − When booting the Archimedes up it is tempting to just
  36. refer to applications assuming their path starts at the root ($). e.g.
  37. !Edit − can be installed on the desktop using just !Edit in a boot file.
  38. 3.6
  39. However, this will not ensure the appropriate system variable is set up
  40. with the full pathname. Again using !Edit as example, you would get just
  41. − Edit$Dir = !Edit
  42. 3.6
  43. To avoid this put the full name in the desktop boot file, e.g.
  44. 3.6
  45. *Run adfs:HardDisc.$.!Edit
  46. 3.6
  47. Only of much use if, like me, you decide to set the directory yourself
  48. while using Desktop (despite what Acorn advise!). Ian Pollock
  49. 3.6
  50. •   Graph-Box − superb program but I find it very annoying that it
  51. ‘dies’ when you close the window. The following changes will give
  52. Graphbox an icon on the iconbar. It will only ‘die’ when you click
  53. <menu> followed by ‘quit’ as Edit and Draw etc. This lets you clear some
  54. valuable desktop space to write a letter or whatever. while still having
  55. Graphbox available on the icon bar.
  56. 3.6
  57. *BASIC
  58. 3.6
  59. LOAD “!GraphBox.!RunImage”
  60. 3.6
  61.  220 WHEN 3:PROCclosew(!q%):IF!q%=
  62. 3.6
  63. w_graphbox% THEN mainclosed%=TRUE
  64. 3.6
  65.  560 quit%=FALSE:mainclosed%=FALSE
  66. 3.6
  67. 4590 WHEN0:PROCclosew(w_graphbox%)
  68. 3.6
  69. :quit%=TRUE
  70. 3.6
  71. 5291 Icon%=sprites%:!Icon%=TRUE:
  72. 3.6
  73. DIM Spritename% 14:$Spritename%=
  74. 3.6
  75. “!graphbox”:Icon%!4=0:Icon%!8=0:
  76. 3.6
  77. Icon%!12=64:Icon%!16=68:Icon%!20=
  78. 3.6
  79. (&311A OR (7<<28))
  80. 3.6
  81. 5292 Icon%!24=Spritename%:Icon%!28=1:
  82. 3.6
  83. Icon%!32=12:SYS “Wimp_CreateIcon”
  84. 3.6
  85. ,,Icon% TO graph_iconbar%
  86. 3.6
  87. 5445 READ t$:m_iconbar%=FNcrmenu(t$)
  88. 3.6
  89. 5447 DATA “#Graphbox,Info>w_pinfo%,
  90. 3.6
  91. Quit“
  92. 3.6
  93. 5710 REM quit%=TRUE
  94. 3.6
  95. 6395 IF mh%=-2 AND mb%=4 OR mb%=1024
  96. 3.6
  97.  AND mi%=graph_icnbar% THEN PROCgetw
  98. 3.6
  99. (w_graphbox%):PROCfront(w_graphbox%
  100. 3.6
  101. ,420,150):mainclosed%=FALSE
  102. 3.6
  103. 7375 WHEN-2:IFmi%=graph_icnbar% THEN
  104. 3.6
  105.  PROCpop(m_iconbar%,-1)
  106. 3.6
  107. 8219 IF menu%=m_iconbar% my%+=64
  108. 3.6
  109. 8545 WHEN m_iconbar%:IF !mlist%=1
  110. 3.6
  111.  THEN quit%=TRUE
  112. 3.6
  113. 16505 IFmainclosed%=TRUE PROCfront
  114. 3.6
  115. (w_graphbox%,420,150):
  116. 3.6
  117. mainclosed%=FALSE
  118. 3.6
  119. SAVE “!GraphBox.!RunImage”
  120. 3.6
  121. NOTE: Graphbox claims what you have in your next slot up to a max of
  122. 640k but as the program needs only a minimum of around 200k to run,
  123. there’s space for a very big graph! Before loading Graphbox, drag the
  124. ‘next’ slot down to about 330k to free some more space. You can edit the
  125. !run file and change the -max to reconfigure it more permanently. Rob
  126. Davison
  127. 3.6
  128. •   Installing Alerion − Here are the steps you must take in order to
  129. install RISC-OS Alerion onto your hard disc:
  130. 3.6
  131. (i) create a RAM disc with at least 432k
  132. 3.6
  133. (ii) copy the !Alerion directory into the RAM disc
  134. 3.6
  135. (iii) alter the RAM disc !Boot file in the !Alerion directory so that it
  136. reads:
  137. 3.6
  138. IconSprites <Obey$Dir>.!Sprites
  139. 3.6
  140. (iv) also alter the !Run file so that reads:
  141. 3.6
  142. Set Alerion$Dir <Obey$Dir>
  143. 3.6
  144. RMClear
  145. 3.6
  146. RMLoad MemAlloc
  147. 3.6
  148. RMSize 320k
  149. 3.6
  150. ScreenSize 160k
  151. 3.6
  152. RMKill MemAlloc
  153. 3.6
  154. Run <Alerion$Dir>.!RunImage
  155. 3.6
  156. (v) copy the !Alerion directory from the RAM disc to your hard disc.
  157. 3.6
  158. •   Rounding Errors − Try typing P.STR$(0.6) in BASIC. If you are
  159. putting the string of a variable into a writeable menu option when
  160. programming a wimp system and this rounding error comes up, the
  161. resulting string can overwrite some of the data structure for your menu.
  162. The result is often an “Abort on data transfer”! This can be quite hard
  163. to track down so be careful. DIMming the block to 5 bytes will stop a
  164. crash but will leave the user with a 0.6666666669 to edit instead of
  165. 0.6. This can be a bit disconcerting. To solve it, set @% to round to
  166. e.g. 2 decimal places before doing the STR$ and reset @% afterwards −
  167. see 400 series BASIC Guide pp277-278 for details. Rob Davison
  168. 3.6
  169. •   Screen modes & memory claiming − If your program has a proper RISC-
  170. OS front end, it can change modes without worrying about screen memory.
  171. If there is enough in ‘free’ and ‘next’ it will be shunted to screen
  172. memory and the mode selected. Rob Davison
  173. 3.6
  174. •   Synthesiser MIDI modes − The answer to Gerald Fitton’s problem
  175. (issue 2.12 p 18) that his Korg synthesiser plays all channels no matter
  176. what he does, is that his synthesiser is not in the correct MIDI mode.
  177. 3.6
  178. All MIDI devices operate under modes. These are as below:
  179. 3.6
  180.    MIDI mode 1:   OMNI On/Poly
  181. 3.6
  182.    MIDI mode 2:   OMNI On/Mono
  183. 3.6
  184.    MIDI mode 3:   OMNI Off/Poly
  185. 3.6
  186.    MIDI mode 4:   OMNI Off/Mono
  187. 3.6
  188. OMNI On/Off selects whether the device receives on all MIDI channels
  189. (OMNI On) or only on one MIDI channel (OMNI Off). Poly means that the
  190. device will be able to play two or more notes at the same time and Mono
  191. means that it will only be able to play one at a time. The Korg will
  192. almost certainly be in MIDI mode 1, which is how most synthesisers are
  193. set up when they are sent from the shop. The answer is to change the
  194. MIDI mode to 3 or 4 and to set the Korg to receive on the same MIDI
  195. channel as Maestro is sending.
  196. 3.6
  197. •   Wimp Resizing − I have written a program which needs a large area of
  198. memory as store for data. The program works in the desktop and claims
  199. memory via SYS “Wimp_SlotSize”. Initially, I used the BASIC statement
  200. “END=HIMEM + value%” but this also changes the address of HIMEM. Loops,
  201. procedures and local variables are stored just below HIMEM so my data
  202. was being overwritten. I tried lowering HIMEM immediately afterwards but
  203. things still went wrong so I use “Wimp_SlotSize” directly. BASIC is
  204. ignorant of the new memory area and it can therefore be safely used as a
  205. store. Use a variable “Claimer%’ and exit the Wimp_Poll loop if it’s not
  206. zero then call Wimp_SlotSize. R.D.
  207. 3.6
  208.